.class public Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public a:I

.field private b:Landroid/view/View;

.field private c:Landroid/content/Context;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/LinearLayout;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Lcom/waiqin365/lightapp/kehu/view/au;

.field private l:Lcom/waiqin365/lightapp/kehu/view/at;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->c:Landroid/content/Context;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->c:Landroid/content/Context;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->c:Landroid/content/Context;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a()V

    return-void
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->c:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030084

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c01da

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->d:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c0325

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->e:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c0326

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c0327

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c0329

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->h:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c032a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->b:Landroid/view/View;

    const v1, 0x7f0c0328

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x2

    const/4 v2, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    if-ne v0, v3, :cond_0

    iput v2, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const v1, 0x7f0200a1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const v1, 0x7f0200a4

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->k:Lcom/waiqin365/lightapp/kehu/view/au;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->k:Lcom/waiqin365/lightapp/kehu/view/au;

    invoke-interface {v0, v2}, Lcom/waiqin365/lightapp/kehu/view/au;->a(I)V

    goto :goto_0

    :sswitch_1
    iget v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    if-ne v0, v2, :cond_0

    iput v3, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const v1, 0x7f0200a2

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const v1, 0x7f0200a3

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->k:Lcom/waiqin365/lightapp/kehu/view/au;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->k:Lcom/waiqin365/lightapp/kehu/view/au;

    invoke-interface {v0, v3}, Lcom/waiqin365/lightapp/kehu/view/au;->a(I)V

    goto :goto_0

    :sswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->l:Lcom/waiqin365/lightapp/kehu/view/at;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->l:Lcom/waiqin365/lightapp/kehu/view/at;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/kehu/view/at;->b()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c01da -> :sswitch_2
        0x7f0c0326 -> :sswitch_0
        0x7f0c0327 -> :sswitch_1
    .end sparse-switch
.end method

.method public setBackListener(Lcom/waiqin365/lightapp/kehu/view/at;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->l:Lcom/waiqin365/lightapp/kehu/view/at;

    return-void
.end method

.method public setHeadTabListener(Lcom/waiqin365/lightapp/kehu/view/au;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->k:Lcom/waiqin365/lightapp/kehu/view/au;

    return-void
.end method

.method public setSelectType(I)V
    .locals 2

    const/4 v1, 0x2

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const v1, 0x7f0200a1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const v1, 0x7f0200a4

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_0
    return-void

    :cond_0
    if-ne p1, v1, :cond_1

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const v1, 0x7f0200a2

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->f:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const v1, 0x7f0200a3

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->g:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x3

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->a:I

    const-string/jumbo v0, "1"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->setUnchangeableHead(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setUnchangeableHead(Ljava/lang/String;)V
    .locals 3

    const/16 v2, 0x8

    const/4 v1, 0x0

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f080726

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string/jumbo v0, "2"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f080725

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, "3"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->j:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/CustomerSelectHeadView;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f080111

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method
